<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewMaterialTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.MaterialLabel_id}"/>
                    <h:outputText value="#{materialController.selected.id}" title="#{bundle.MaterialTitle_id}"/>
                    <h:outputText value="#{bundle.MaterialLabel_descricao}"/>
                    <h:outputText value="#{materialController.selected.descricao}" title="#{bundle.MaterialTitle_descricao}"/>
                    <h:outputText value="#{bundle.MaterialLabel_tempoDecomposicao}"/>
                    <h:outputText value="#{materialController.selected.tempoDecomposicao}" title="#{bundle.MaterialTitle_tempoDecomposicao}"/>
                    <h:outputText value="#{bundle.MaterialLabel_toxico}"/>
                    <h:selectBooleanCheckbox disabled="true" value="#{materialController.selected.toxico}" title="#{bundle.MaterialTitle_toxico}" />
                    <h:outputText value="#{bundle.MaterialLabel_tipo}"/>
                    <h:outputText value="#{materialController.selected.tipo}" title="#{bundle.MaterialTitle_tipo}"/>
                    <h:outputText value="#{bundle.MaterialLabel_observacoes}"/>
                    <h:outputText value="#{materialController.selected.observacoes}" title="#{bundle.MaterialTitle_observacoes}"/>
                </h:panelGrid>
                <h:link outcome="pesquisa" value="#{bundle.ShowLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
